<?php

declare(strict_types=1);

namespace app\shop\controller\api\third;

use app\shop\controller\api\ShopBase;
use sheep\exception\SheepException;
use app\shop\service\third\apple\Apple as AppleService;

class Apple extends ShopBase
{
    // 苹果登陆（仅对接App登录）
    public function login()
    {
        $payload = $this->request->post('payload');
        $apple = new AppleService();
        $result = $apple->login($payload);
        if ($result) {
            return success('登陆成功');
        }

        return error('登陆失败');
    }

}
